define([], function() {

	return {
		defaultUrl : "/login",
		states : {

			"login" : {
				url : "/login",
				templateUrl : "views/login.html",
				dependencies : [ "controllers/LoginController" ]
			},

			// 主页面
			"home" : {
				abstract : true,
				templateUrl : "views/home.html",
				controller : "HomeController",
				dependencies : [ "controllers/HomeController" ]
			},
			
			// 用户管理
			"home.userManagement" : {
				url : "/userManagement",
				templateUrl : "views/showtimes/userManagement.html",
				dependencies : [ "controllers/showtimes/UserManagementController" ]
			},
			// 标签管理
			"home.labelManagement" : {
				url : "/labelManagement",
				templateUrl : "views/showtimes/labelManagement.html",
				dependencies : [ "controllers/showtimes/LabelManagementController" ]
			},
			
			// 帖子管理
			"home.shareManagement" : {
				url : "/shareManagement",
				templateUrl : "views/showtimes/shareManagement.html",
				dependencies : [ "controllers/showtimes/ShareManagementController" ]
			},
			
			// 帖子详情
			"home.showShare" : {
				url : "/editShare/:shareId",
				templateUrl : "views/showtimes/ShowShare.html",
				dependencies : [ "controllers/showtimes/ShowShareController" ]
			},
			
			// 修改帖子
			"home.editShare" : {
				url : "/showShare/:shareId",
				templateUrl : "views/showtimes/EditShare.html",
				dependencies : [ "controllers/showtimes/EditShareController" ]
			},
			
			 // 修改用户
			"home.updateUser" : {
				url : "/updateUser/:userId",
				templateUrl : "views/showtimes/EditUser.html",
				dependencies : [ "controllers/showtimes/EditUserController" ]
			},
			
			// 发布分享
			"home.addShare" : {
				url : "/addShare",
				templateUrl : "views/showtimes/addShare.html",
				dependencies : [ "controllers/showtimes/ShareManagementController" ]
			},
			
			// 自动更新
			"home.autoUpdateManagement" : {
				url : "/autoUpdateManagement",
				templateUrl : "views/showtimes/autoUpdateManagement.html",
				dependencies : [ "controllers/showtimes/AutoUpdateManagementController" ]
			},
			
			// 发布版本
			"home.addVersion" : {
				url : "/addVersion",
				templateUrl : "views/showtimes/addVersion.html",
				dependencies : [ "controllers/showtimes/AutoUpdateManagementController" ]
			},
			
			// 新增用户
			"home.addUserNew" : {
				url : "/addUserNew",
				templateUrl : "views/showtimes/AddUser.html",
				dependencies : [ "controllers/showtimes/AddUserController" ]
			},
			
			
			// 商户信息
			"home.merchantManagement" : {
				url : "/merchantManagement",
				templateUrl : "views/remotecontrol/merchantManagement.html",
				dependencies : [ "controllers/remotecontrol/MerchantManagementController" ]
			},
			
			// 小号信息
			"home.smallNoManagement" : {
				url : "/smallNoManagement",
				templateUrl : "views/remotecontrol/smallNoManagement.html",
				dependencies : [ "controllers/remotecontrol/SmallNoManagementController" ]
			},
			
			// 上传页面
        	"upload" : {
        		url : "/upload",
        		templateUrl : "views/upload/upload.html",
        		controller : "UploadController",
                dependencies : [
                    "controllers/UploadController"
                ]
        	}
		}
	};
});
